<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
   <h1><a href="{:U('add')}" title="添加数据" class="addbtn">新建模板</a></h1>
     <div class="table_"><table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
 <thead>
 <tr>
    <td align="center">ID</td>
    <td align="center">效果图</td>
    <td align="center">模板名称</td>
    <td align="center">模板目录名称</td>
    <td align="center">配置列表项</td>
    <td align="center">启用</td>
    <td align="center">所属组</td>
    <td align="center">操作</td>
  </tr>
</thead>
<volist name="list" id="vo">
  <tr class="data_list">
    <td align="center"><input type="checkbox" name="id" id="id" class="sall" value="{$vo.id}" /></td>
    <td><img src="__PUBLIC__<notempty name="vo['img_url']">{$vo.img_url}<else/>/Home/{$vo.name}/view.jpg</notempty>" height="100" /></td>
    <td>{$vo.title}</td>
    <td>{$vo.name}</td>
    <td align="center"><a href="{:U('Setting/index',array('template_id'=>$vo['id']))}">设置配置列表</a></td>
    <td align="center"><eq name="vo['status']" value="1"><span class="status1 status_btn" field="status,{$vo.id}"></span><else/><span class="status0 status_btn" field="status,{$vo.id}"></span></eq></td>
    <td align="center">&nbsp;</td>
    <td align="center"><a onclick="mydialog.open('/Admin/Template_modules/index/template_id/{$vo.id}.html',{width: 1000, height: 700,lock:true,title:'编辑模块'});" href="javascript:;">编辑模块</a> | <a href="{:U('edit',array('id'=>$vo['id']))}">查看</a> | <a href="{:U('delete',array('id'=>$vo['id']))}" onclick="return confirm('您确定要删除这条记录吗？');">删除</a></td>
  </tr>
</volist>
  <tr>
    <td colspan="8"><a href="javascript:void(0);" onclick="sall();">全选/反选</a> <a href="javascript:void(0);" onclick="rall();">全不选</a> <a href="javascript:void(0);" onclick="delall();">删除选中</a> <a href="javascript:void(0);" onclick="update_sort();">更新排序</a></td>
    </tr><tr>
    <td colspan="8"><div class="pages">{$pages}</div></td>
    </tr>
</table></div>

  </div>
  <div class="clear"></div>
</div>
<include file="Public:footer" />